import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.support.pagefactory.ElementLocator;

import java.util.List;
import java.util.Set;

import static java.lang.Thread.sleep;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        ChromeOptions options = new ChromeOptions();
        options.addArguments("--remote-allow-origins=*");
        WebDriver webDriver = new ChromeDriver(options);
        webDriver.get("http://www.douyin.com");
        webDriver.findElement(By.cssSelector("li[aria-label='验证码登录']")).click();
        sleep(1000);
        webDriver.findElement(By.cssSelector(".web-login-normal-input__input")).sendKeys("15159095136");
        webDriver.findElement(By.cssSelector(".web-login-button-input__button-text")).click();
    }
}
